Optimal. Leaf size=175 \[ -\frac{\tan ^{-1}\left (\frac{\sqrt{\sqrt [3]{a}-\sqrt [3]{b}} \cot (x)}{\sqrt [6]{a}}\right )}{3 a^{5/6} \sqrt{\sqrt [3]{a}-\sqrt [3]{b}}}-\frac{\tan ^{-1}\left (\frac{\sqrt{\sqrt [3]{a}+\sqrt [3]{-1} \sqrt [3]{b}} \cot (x)}{\sqrt [6]{a}}\right )}{3 a^{5/6} \sqrt{\sqrt [3]{a}+\sqrt [3]{-1} \sqrt [3]{b}}}-\frac{\tan ^{-1}\left (\frac{\sqrt{\sqrt [3]{a}-(-1)^{2/3} \sqrt [3]{b}} \cot (x)}{\sqrt [6]{a}}\right )}{3 a^{5/6} \sqrt{\sqrt [3]{a}-(-1)^{2/3} \sqrt [3]{b}}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.249201, antiderivative size = 175, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 3, integrand size = 11, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.273, Rules used = {3211, 3181, 203} \[ -\frac{\tan ^{-1}\left (\frac{\sqrt{\sqrt [3]{a}-\sqrt [3]{b}} \cot (x)}{\sqrt [6]{a}}\right )}{3 a^{5/6} \sqrt{\sqrt [3]{a}-\sqrt [3]{b}}}-\frac{\tan ^{-1}\left (\frac{\sqrt{\sqrt [3]{a}+\sqrt [3]{-1} \sqrt [3]{b}} \cot (x)}{\sqrt [6]{a}}\right )}{3 a^{5/6} \sqrt{\sqrt [3]{a}+\sqrt [3]{-1} \sqrt [3]{b}}}-\frac{\tan ^{-1}\left (\frac{\sqrt{\sqrt [3]{a}-(-1)^{2/3} \sqrt [3]{b}} \cot (x)}{\sqrt [6]{a}}\right )}{3 a^{5/6} \sqrt{\sqrt [3]{a}-(-1)^{2/3} \sqrt [3]{b}}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3211
Rule 3181
Rule 203
Rubi steps
\begin{align*} \int \frac{1}{a-b \cos ^6(x)} \, dx &=\frac{\int \frac{1}{1-\frac{\sqrt [3]{b} \cos ^2(x)}{\sqrt [3]{a}}} \, dx}{3 a}+\frac{\int \frac{1}{1+\frac{\sqrt [3]{-1} \sqrt [3]{b} \cos ^2(x)}{\sqrt [3]{a}}} \, dx}{3 a}+\frac{\int \frac{1}{1-\frac{(-1)^{2/3} \sqrt [3]{b} \cos ^2(x)}{\sqrt [3]{a}}} \, dx}{3 a}\\ &=-\frac{\operatorname{Subst}\left (\int \frac{1}{1+\left (1-\frac{\sqrt [3]{b}}{\sqrt [3]{a}}\right ) x^2} \, dx,x,\cot (x)\right )}{3 a}-\frac{\operatorname{Subst}\left (\int \frac{1}{1+\left (1+\frac{\sqrt [3]{-1} \sqrt [3]{b}}{\sqrt [3]{a}}\right ) x^2} \, dx,x,\cot (x)\right )}{3 a}-\frac{\operatorname{Subst}\left (\int \frac{1}{1+\left (1-\frac{(-1)^{2/3} \sqrt [3]{b}}{\sqrt [3]{a}}\right ) x^2} \, dx,x,\cot (x)\right )}{3 a}\\ &=-\frac{\tan ^{-1}\left (\frac{\sqrt{\sqrt [3]{a}-\sqrt [3]{b}} \cot (x)}{\sqrt [6]{a}}\right )}{3 a^{5/6} \sqrt{\sqrt [3]{a}-\sqrt [3]{b}}}-\frac{\tan ^{-1}\left (\frac{\sqrt{\sqrt [3]{a}+\sqrt [3]{-1} \sqrt [3]{b}} \cot (x)}{\sqrt [6]{a}}\right )}{3 a^{5/6} \sqrt{\sqrt [3]{a}+\sqrt [3]{-1} \sqrt [3]{b}}}-\frac{\tan ^{-1}\left (\frac{\sqrt{\sqrt [3]{a}-(-1)^{2/3} \sqrt [3]{b}} \cot (x)}{\sqrt [6]{a}}\right )}{3 a^{5/6} \sqrt{\sqrt [3]{a}-(-1)^{2/3} \sqrt [3]{b}}}\\ \end{align*}
Mathematica [C] time = 0.176012, size = 146, normalized size = 0.83 \[ -\frac{8}{3} \text{RootSum}\left [-64 \text{$\#$1}^3 a+\text{$\#$1}^6 b+6 \text{$\#$1}^5 b+15 \text{$\#$1}^4 b+20 \text{$\#$1}^3 b+15 \text{$\#$1}^2 b+6 \text{$\#$1} b+b\& ,\frac{2 \text{$\#$1}^2 \tan ^{-1}\left (\frac{\sin (2 x)}{\cos (2 x)-\text{$\#$1}}\right )-i \text{$\#$1}^2 \log \left (\text{$\#$1}^2-2 \text{$\#$1} \cos (2 x)+1\right )}{-32 \text{$\#$1}^2 a+\text{$\#$1}^5 b+5 \text{$\#$1}^4 b+10 \text{$\#$1}^3 b+10 \text{$\#$1}^2 b+5 \text{$\#$1} b+b}\& \right ] \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.121, size = 62, normalized size = 0.4 \begin{align*}{\frac{1}{6\,a}\sum _{{\it \_R}={\it RootOf} \left ( a{{\it \_Z}}^{6}+3\,a{{\it \_Z}}^{4}+3\,a{{\it \_Z}}^{2}+a-b \right ) }{\frac{ \left ({{\it \_R}}^{4}+2\,{{\it \_R}}^{2}+1 \right ) \ln \left ( \tan \left ( x \right ) -{\it \_R} \right ) }{{{\it \_R}}^{5}+2\,{{\it \_R}}^{3}+{\it \_R}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} -\int \frac{1}{b \cos \left (x\right )^{6} - a}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int -\frac{1}{b \cos \left (x\right )^{6} - a}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]